package com.buaa.aimall.goodsModule.Entity;

import com.baomidou.mybatisplus.annotation.*;
import com.buaa.aimall.Utils.Enum.WorkOrderStatusEnum;
import com.buaa.aimall.goodsModule.Enum.GoodsTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Data;

import java.time.LocalDateTime;

@TableName(value = "order_appeal_workorder")
@Data
@AllArgsConstructor
public class GoodsOrderAppealWorkOrderEntity {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("fk_goods_order")
    private String goodsOrderID;

    @TableField("fk_creator")
    private String appealerID;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("status")
    private WorkOrderStatusEnum status;  // 0:进行中, 1:通过, 2:驳回

    @TableField("fk_processor")
    private String processorId;

    @TableField("process_time")
    private LocalDateTime processTime;

    @TableField("content")
    private String content;

    @TableField("goods_type")
    private GoodsTypeEnum goodsType;
}
